class AC:
    def cool_wind(self):
        """制冷"""
        pass
    def hot_wind(self):
        """制热"""
        pass
    def swing_l_r(self):
        """左右摆风"""
        pass

# 父类的抽象方法无法直接使用，在子类中必须复写

class Midea_AC(AC):
    def cool_wind(self):
        print("美的制冷")

    def hot_wind(self):
        print("美的制热")

    def swing_l_r(self):
        print("美的左右摆风")


class Geli_AC(AC):
    def cool_wind(self):
        print("格力的空调制冷")

    def hot_wind(self):
        print("格力的空调制热")

    def swing_l_r(self):
        print("格力的空调左右摆风")


def make_cool(ac:AC):
    ac.cool_wind()
def make_hot(ac:AC):
    ac.hot_wind()
def  swing_l_r(ac:AC):
    ac. swing_l_r()

meidi = Midea_AC()
geli = Geli_AC()

make_cool(meidi)
make_hot(meidi)
swing_l_r(meidi)
make_cool(geli)
make_hot(geli)
swing_l_r(geli)